namespace :bilibiliranking do
  desc "bilibili ranking example pickup title"
  task :title => :environment do
    doc = BiliRankingMaker.create({:path => "#{BILI_PRO_PATH}#{ENV['pa']}\\"}) do |vvm|
      vvm.title(4, true)
    end
    doc.write File.open("#{BILI_PRO_PATH}#{ENV['pa']}\\" + "xml.xml", 'w')
  end
end